{"ast":null,"code":"var _s = $RefreshSig$();\nimport React from 'react';\nexport const Title = function () {\n  _s();\n  let countMessage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n  const [title] = React.useState(`${process.env.REACT_APP_NAME_PROJECT}`);\n  React.useEffect(() => {\n    countMessage > 0 ? document.title = `(${countMessage}) ` + title : document.title = title;\n  }, [countMessage, title]);\n};\n_s(Title, \"XsHfw68wwlQJ8OmtqyXeLZpFsGo=\");\n_c = Title;\nexport default Title;\nvar _c;\n$RefreshReg$(_c, \"Title\");","map":{"version":3,"names":["React","Title","countMessage","title","useState","process","env","REACT_APP_NAME_PROJECT","useEffect","document"],"sources":["/data/messenger.client/src/utils/Title.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Title = (countMessage:Readonly<number> = 0): void => {\n    const [title] = React.useState<string>(`${process.env.REACT_APP_NAME_PROJECT}`);\n\n    React.useEffect(() => {\n        countMessage > 0?\n            document.title = `(${countMessage}) ` + title:\n            document.title = title;\n    }, [countMessage, title]);\n};\n\nexport default Title;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,KAAK,GAAG,YAA6C;EAAA;EAAA,IAA5CC,YAA6B,uEAAG,CAAC;EACnD,MAAM,CAACC,KAAK,CAAC,GAAGH,KAAK,CAACI,QAAQ,CAAU,GAAEC,OAAO,CAACC,GAAG,CAACC,sBAAuB,EAAC,CAAC;EAE/EP,KAAK,CAACQ,SAAS,CAAC,MAAM;IAClBN,YAAY,GAAG,CAAC,GACZO,QAAQ,CAACN,KAAK,GAAI,IAAGD,YAAa,IAAG,GAAGC,KAAK,GAC7CM,QAAQ,CAACN,KAAK,GAAGA,KAAK;EAC9B,CAAC,EAAE,CAACD,YAAY,EAAEC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAAC,GARWF,KAAK;AAAA,KAALA,KAAK;AAUlB,eAAeA,KAAK;AAAC;AAAA"},"metadata":{},"sourceType":"module"}